-- GENERATED SPELL FOR [Forge Camp Legionnaire] --


function spell0_16954(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16954', 571, 1)
end

function spell1_16954(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16954', 5273, 1)
end

function Sorts_16954(pUnit, Event)
local choix_sorts_16954 = math.random(0, 1)
if choix_sorts_16954 == 0 then
pUnit:RegisterEvent('spell0_16954', 1, 1)
end
if choix_sorts_16954 == 1 then
pUnit:RegisterEvent('spell1_16954', 1, 1)
end
end

function mob16954_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16954', math.random(1500, 3000), 1)
end

function mob16954_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16954_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16954_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16954, 1, 'mob16954_Action')
RegisterUnitEvent(16954, 2, 'mob16954_Leave')
RegisterUnitEvent(16954, 3, 'mob16954_Kill')
RegisterUnitEvent(16954, 4, 'mob16954_Die')
